#pragma once

#include "BRTree.h"

namespace czb
{
	template<class K>
	class set
	{
		struct SetKeyOfT
		{
			const K& operator() (const K& key)
			{
				return key;
			}
		};

	public:
		typedef typename BRTree<K, const K, SetKeyOfT>::iterator iterator;
		
		iterator begin()
		{
			return _t.begin();
		}

		iterator end()
		{
			return _t.end();
		}

		bool Insert(const K& key)
		{
			return _t.Insert(key);
		}


	private:
		BRTree<K, const K, SetKeyOfT> _t;

	};
}